/*
 * nmcom.h
 *
 *  Created on: Feb 9, 2010
 *      Author: Marco Luisi
 */

#ifndef NMCOM_H_
#define NMCOM_H_


#include "nmat.h"
#include "util.h"

#define UNIX_PATH_MAX 108

enum commands {
	_exi, _list, _print, _save, _load, _new, _TRASP, _add, _sub, _mul, _del
};

typedef struct  {
        int cmdcode; //nel client comunica errori
        int nnum; //meglio unsigned int?
        int argnum;
        double *numbers;
        char **args;
} message_t;

int openWPipe(); //parametri?
int openRPipe();

int receive(int, message_t*);
int send(int, message_t*);
void msgprint(message_t*);



#endif /* NMCOM_H_ */
